/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ig.formato.util;

/**
 *
 * @author jsanchez
 */
public class Linea implements Comparable{

    private Integer index=null;
    private String linea=null;
    private Integer consecutivo=null;

    public Linea(String _linea,Integer _index,Integer _consecutivo) {
        this.index=_index;
        this.linea=_linea;
        this.consecutivo=_consecutivo;
    }

    public Integer getConsecutivo() {
        return consecutivo;
    }

    public void setConsecutivo(Integer consecutivo) {
        this.consecutivo = consecutivo;
    }

    
    public void setLinea(String linea) {
        this.linea = linea;
    }

    public String getLinea() {
        return linea;
    }
    

    public void setIndex(Integer index) {
        this.index = index;
    }

    public Integer getIndex() {
        return index;
    }
    
    public int compareTo(Object o) {
        return getIndex().compareTo(((Linea)o).getIndex());
    }
    

}
